{% extends "apostrophe-modal:baseSlideable.html" %}
{% import "apostrophe-modal:macros.html" as modals %}
{% import "apostrophe-schemas:macros.html" as schemas %}
{% import 'apostrophe-ui:components/buttons.html' as buttons with context %}

{% block controls %}
  {% if data.verb == 'insert' %}
    {{ module.createControls() }}
  {% else %}
    {{ module.editControls() }}
  {% endif %}
{% endblock %}

{% block label %}
	{% if data.verb == 'update' %}
        {{ __ns('apostrophe', 'Page Settings') }}
	{% elif data.verb == 'insert' %}
        {{ __ns('apostrophe', 'New Page') }}
  {% elif data.verb == 'copy' %}
        {{ __ns('apostrophe', 'Copy Page') }}
	{% endif %}
{% endblock %}

{% block instructions %}
	{% if data.verb == 'update' %}
    {{ __ns('apostrophe', "Change the settings of a page.") }}
	{% elif data.verb == 'insert' %}
    {{ __ns('apostrophe', "Set the options for a new page.") }}
	{% endif %}
{% endblock %}

{% block body %}
  {# HEY! DON'T REMOVE THIS DIV! Needed so we can swap page types dynamically. If #}
  {# this is causing grief for you with sliders or something, fix that to cope. #}
  {# No going halfsies. -Tom #}
  <div data-page-schema-fields>
    {{ schemas.fields(data.schema) }}
  </div>
{% endblock %}

{% block footerContainer %}{% endblock %}
